<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Widget extends CI_Controller {
	public function index() {
		
	}
	
	public function weather() {
		$now = time();
		$requestUrl = "http://cgi.appx.qq.com/cgi/qqweb/weather/wth/weather.do?retype=1&city=广州&t=" . $now;
		$result = file_get_contents($requestUrl);
		echo $result;
	}
}